import request from '@/utils/request'

export function {{tableName}}List(data) {
  return request({
    url: '/{{tableName}}',
    method: 'get',
    data
  })
}

export function {{tableName}}Post(data) {
  return request({
    url: '/{{tableName}}',
    method: 'post',
    data
  })
}

export function {{tableName}}Patch(data) {
  return request({
    url: `/{{tableName}}/${data.id}`,
    method: 'patch',
    data
  })
}
